home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1035 / 1035.xpi / chrome / 1clickweather.jar / content / 1clickweather / js / config / loadconfig.js < prev    next >
Text File  |  2008-10-05  |  830b  |  27 lines

  1. // ⌐ 2005 The Weather Channel Interactive, Inc.  All Rights Reserved.
  2.  
  3. // create the global variables to access configurations
  4. var GlobalUserConfig = null;
  5. var GlobalAppConfig = null;
  6. var GlobalConfigManager = null;
  7.  
  8.  
  9. // load up config javascript
  10. jsInclude("chrome://1clickweather/content/js/utils/filemanager.js");
  11. jsInclude("chrome://1clickweather/content/js/config/configutils.js");
  12. jsInclude("chrome://1clickweather/content/js/config/configmanager.js");
  13. jsInclude("chrome://1clickweather/content/js/config/appconfig.js");
  14. jsInclude("chrome://1clickweather/content/js/config/userconfig.js");
  15.  
  16.  
  17. try{
  18.    GlobalConfigManager = new ConfigManager();
  19.  
  20.    GlobalUserConfig = new GlobalConfigManager.getUserConfig();
  21.    GlobalAppConfig = new GlobalConfigManager.getAppConfig();
  22.  
  23. }catch(e){
  24.    alert("error in loadconfig.js: " + e);
  25. }
  26.  
  27.